public class Leet955 {
    public int minDeletionSize(String[] strs) {
        char[][] chs = new char[strs.length][strs[0].length()];
        for (int i = 0; i < strs.length; i++) {
            chs[i] = strs[i].toCharArray();
        }
        int re = 0;
        for (int i = 0; i < chs.length; i++) {
            for (int j = 0; j < chs[0].length-1; j++) {
                if (chs[i][j]>chs[i][j+1]){
                    re++;
                    break;
                }
            }
        }
        return re;
    }
}
